# Copyright (C) 1999-2005 Open Source Telecom Corporation.
# Copyright (C) 2006-2014 David Sugar, Tycho Softworks.
# Copyright (C) 2015 Cherokees of Idaho.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AUTOMAKE_OPTIONS = no-dependencies dist-shar
EXTRA_DIST = CMakeLists.txt

LT_VERSION=@LT_CCXX_VERSION@
#ignored for programs
#$(LT_VERSION) -release $(LT_RELEASE)
AM_CXXFLAGS = @WARN_FLAGS@ -I$(top_srcdir)/src -I$(top_srcdir)/src/ccrtp
ccxxincludedir=$(includedir)/cc++

if SRTP_GCRYPT
srtp_src = ccsrtptest
ccsrtptest_SOURCES = ccsrtptest.cpp
ccsrtptest_LDADD = ../src/libccrtp.la @GNULIBS@
endif

if SRTP_OPENSSL
srtp_src = ccsrtptest
ccsrtptest_SOURCES = ccsrtptest.cpp
ccsrtptest_LDADD = ../src/libccrtp.la @GNULIBS@
endif

noinst_PROGRAMS = rtpsend rtplisten rtphello rtpduphello audiorx audiotx \
    ccrtptest $(srtp_src)

rtpsend_SOURCES = rtpsend.cpp
rtpsend_LDADD = ../src/libccrtp.la @GNULIBS@

rtplisten_SOURCES = rtplisten.cpp
rtplisten_LDADD = ../src/libccrtp.la @GNULIBS@

rtphello_SOURCES = rtphello.cpp
rtphello_LDADD = ../src/libccrtp.la @GNULIBS@

rtpduphello_SOURCES = rtpduphello.cpp
rtpduphello_LDADD = ../src/libccrtp.la @GNULIBS@

audiorx_SOURCES = audiorx.cpp audio.h
audiorx_LDADD = ../src/libccrtp.la @GNULIBS@

audiotx_SOURCES = audiotx.cpp
audiotx_LDADD = ../src/libccrtp.la @GNULIBS@

ccrtptest_SOURCES = ccrtptest.cpp
ccrtptest_LDADD = ../src/libccrtp.la @GNULIBS@
